package com.sample.base.adapter.holder;

import android.view.View;

import androidx.annotation.NonNull;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;

import com.loyal.adapter.BaseListAdapter;

public class ListBindHolder<B extends ViewDataBinding> extends BaseListAdapter.ViewHolder {
    private final B binding;

    public ListBindHolder(@NonNull View itemView) {
        super(itemView);
        binding = DataBindingUtil.bind(itemView);
    }

    public B getBinding() {
        return binding;
    }
}
